#!/usr/bin/python
for a in range(1,500):
	for b in range(1,500):
		c = (a**2 + b**2)**0.5
		ans = (a + b + c)
		if ans != 1000.0:
			continue
		else:
			print ans, a, b, c
			print "Product =", (a*b*c)
